//
//  SizeForLabel.m
//  A段项目总结_TableView
//
//  Created by dllo on 15/12/9.
//  Copyright © 2015年 李涵. All rights reserved.
//

#import "SizeForLabel.h"

@implementation SizeForLabel
+(CGSize)labelRectWithSize:(CGSize)size
                 LabelText:(NSString *)labelText
                      Font:(UIFont *)font{
    
    NSDictionary  *dic = [NSDictionary dictionaryWithObjectsAndKeys:font, NSFontAttributeName, nil];
    CGSize actualsize = [labelText boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil].size;
    
    return actualsize;
    
    
}
@end
